package de.fhkl.strokeprotocol.messages;

import java.util.UUID;

/**
 * Message that allows the sender to send a rating on a specified video.
 */
public class RatingMessage implements IMessage
{
	private static final long serialVersionUID = 4245267976318956628L;

	/** Correspondent video id */
	private UUID mVideoId;

	/** Rating */
	private boolean mRating;

	/**
	 * Message that allows the sender to send a rating on a specified video.
	 * 
	 * @param videoId
	 * @param rating
	 */
	public RatingMessage(UUID videoId, boolean rating)
	{
		mVideoId = videoId;
		mRating = rating;
	}

	/**
	 * Returns the rating for the specified video.
	 * 
	 * @return
	 */
	public boolean getRating()
	{
		return mRating;
	}

	/**
	 * Sets the rating for the specified video.
	 * 
	 * @param rating
	 */
	public void setRating(boolean rating)
	{
		mRating = rating;
	}

	/**
	 * Returns the ID of the correspondent video.
	 * 
	 * @return
	 */
	public UUID getVideoId()
	{
		return mVideoId;
	}

	/**
	 * Sets the ID of the correspondent video.
	 * 
	 * @param videoId
	 */
	public void setVideoId(UUID videoId)
	{
		mVideoId = videoId;
	}
}
